cross product method in ratio